package com.j2eefast.bussiness.contract.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>设备档案</p>
 *
 * @author: summer
 * @date: 2021-06-08 14:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
@Data
@TableName("bus_equipment_archives")
public class BusArchivesEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    protected Integer id;
//    //部门
//    @TableField(value = "department")
//    protected String department;
    //设备编码
    @TableField(value = "equipment_code")
    @ExcelProperty(value = "设备编码",index = 0)
    protected String equipmentCode;
    //设备名称
    @TableField(value = "equipment_name")
    @ExcelProperty(value = "设备名称",index = 1)
    protected String equipmentName;
    //设备类型
    @TableField(value = "equipment_model")
    @ExcelProperty(value = "设备类型",index = 2)
    protected String equipmentModel;
    //单位
    @TableField(value = "metering_unit")
    @ExcelProperty(value = "单位",index = 3)
    protected String meteringUnit;
    //使用说明
    @TableField(value = "instructions_url")
    @ExcelIgnore
    protected String instructionsUrl;
    //计量公司证书
    @TableField(value = "certificate_url")
    @ExcelIgnore
    protected String certificateUrl;
    //合格证
    @TableField(value = "qualified_url")
    @ExcelIgnore
    protected String qualifiedUrl;
    //操作规程
    @TableField(value = "operation_url")
    @ExcelIgnore
    protected String operationUrl;
    //型号
    @TableField(value = "equipment_id")
    @ExcelIgnore
    protected String equipmentId;
    //备注
    @TableField(value = "remark")
    @ExcelProperty(value = "备注",index = 4)
    protected String remark;
    //创建日期
    @TableField(value = "create_time")
    @ExcelProperty(value = "创建日期",index = 5)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date createTime;
    //更新日期
    @TableField(value = "update_time")
    @ExcelProperty(value = "更新日期",index = 6)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date updateTime;
    //创建人
    @TableField(value = "create_by")
    @ExcelProperty(value = "创建人",index = 7)
    protected String createBy;
    //更新人
    @TableField(value = "update_by")
    @ExcelProperty(value = "更新人",index = 8)
    protected String updateBy;




    @Override
    public String toString() {
        return super.toString();
    }
}
